<table class="table_center">
	<thead>
		<tr>
			<th class="center">属性名称</th>
			<th class="center">属性价格</th>
			<th class="center">属性说明</th>
			<th class="center">排序</th>
			<th class="center">启用</th>
			<th class="center">操作</th>
		</tr>
	</thead>
	<tbody>
		<volist name="attrs" id="a">
		<tr>
			<td align="center">
				<input type="text" id="name_{$a.id}" class="input-text" value="{$a.name}" />
			</td>
			<td align="center">
				<input type="text" id="price_{$a.id}" class="input-text" value="{$a.price}" />
			</td>
			<td align="center">
				<input type="text" id="title_{$a.id}" class="input-text" value="{$a.title}" />
			</td>
			<td align="center">
				<input type="text" id="ord_{$a.id}" class="input-text" value="{$a.ord}" />
			</td>
			<td align="center">

				<input type="checkbox" id="enabled_{$a.id}" value="0" <eq name="a['disabled']" value="0"> checked="checked"</eq> />
				<label for="enabled"></label>
			</td>
			<td align="center">
				<input type="button" class="button" value="更新" onclick="javascript:attrUpdate({$a.id},{$goods_id});" />
			</td>
		</tr>
		</volist>
	</tbody>
	
	<tfoot>
		
		<tr>
			<td align="center">
				<input type="text" id="attr_name" class="input-text" value="" />
			</td>
			<td align="center">
				<input type="text" id="attr_price" class="input-text" value="" />
			</td>
			<td align="center">
				<input type="text" id="attr_title" class="input-text" value="" />
			</td>
			<td align="center">
				<input type="text" id="attr_ord" class="input-text" value="" />
			</td>
			<td align="center">
				<input type="checkbox" id="attr_enabled" value="1" />
			</td>
			<td align="center">
				<input type="button" class="button" value="添加" onclick="javascript:attrAdd();" />
			</td>
		</tr>
		
	</tfoot>
</table>